package website

class Apartment {
	
	String name
	String city
	String location
	
	int floor	 
	
	int min_people
	int max_people
	
	int dim // dimension
//	float pop // popularity 
	String descript // description
		
	// location information
	
//	String parking  // 12 m / 20 km 
//	String airport
//	String railway
//	String taxi
//	String cash_mach
//	String exch
	
	// furnishing options to do			
	// User owner 
	
	Price pricelist
	List reservations
	List reviews
	static hasMany = [ reservations : Reservation, reviews : Review]
    
	static constraints = {
		name(nullable: false,size : 3..50)		
    }
}
